﻿import { ExtractResult } from "@/core/ruiji/extractor";

export class Chain {    
    useRulePaging: boolean = true;
    interval: number = 10;
    url: string = "";
    urlFields: string[] = ["url"];
    rule: any | null = null;
    result: ExtractResult | null = null;
    matched: string[] = [];
    results: Map<string, Chain> = new Map();

    constructor(){}

    start(url: string) {
        //match url rule

        //add url and rule to matched queue
    }

    excute(url: string, result: ExtractResult) {
        
    }
}